class Contact < ActiveRecord::BaseWithoutTable
  attr_accessor             :contact_email, :contact_topic, :contact_subject, :contact_comment ,:contact_name
  validates_presence_of     :contact_email, :contact_subject, :contact_comment , :contact_name
  validates_length_of       :contact_email, :maximum => 100
  validates_format_of       :contact_email, :with => /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i
end
